package com.zs.toolbox.web2j.system.core.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * @author shuai.zhang  on 2018/9/21
 * @version 1.0.0
 * @description
 */
@Data
@ApiModel("用户名+密码请求体")
public class WtUserNamePasswordLoginRequestToken {
    @ApiModelProperty(value = "用户手机号/邮箱/用户名",example = "admin",required = true)
    @NotBlank(message = "用户名不能为空")
    String userName;

    @NotBlank(message = "密码不能为空")
    @ApiModelProperty(value = "用户密码",example = "password",required = true)
    String password;
}
